package com.suxiaoxiao.springbootlearn.designpattern.iteratorpattern.entity;

/**
 * 菜单
 * @author 、
 */
public class MenuItem {

    /**
     * 名称
     */
    private String name;

    /**
     * 描述
     */
    private String description;

    /**
     * 素食主义者
     */
    private boolean vegetarian;

    /**
     * 价格
     */
    private double price;

    public MenuItem(String name, String description, boolean vegetarian, double price) {
        this.name = name;
        this.description = description;
        this.vegetarian = vegetarian;
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public String getDescription() {
        return description;
    }

    public boolean isVegetarian() {
        return vegetarian;
    }

    public double getPrice() {
        return price;
    }
}
